#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#define OFFSETOF(type, member) (int)&(((type*)0)->member)
struct S
{
	int i;
	char c;
	double d;
};

int main()
{
	printf("%d", OFFSETOF(struct S, d));
	return 0;
}